/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package indexList.tester;

import deque.DequeStack;
import indexList.ArrayIndexList;

/**
 *
 * @author pc
 */
public class TestArrayIndex {

    public static void main(String[] args) throws InterruptedException {
        boolean tmp;
        int cap;
        ArrayIndexList a = new ArrayIndexList(10);
        System.out.println(a.isEmpty());
        for (cap = 0; cap < 10000; cap++) {
            a.add(cap, cap);
            tmp = (cap == a.get(cap) ? true : false);
            System.out.println(cap + "  " + a.get(cap) + "  " + tmp+"  "+a.isEmpty());
        }

        for (cap = 9999; cap >= 0; cap--) {
           
            tmp = (cap == a.get(cap)  ? true : false);
            
            System.out.println(cap + "  " + a.get(cap) + "    "+ a.remove(cap) + "  " + tmp+"  "+a.isEmpty());
        }
        
         System.out.println(a.isEmpty());

 

    }
    
    
}
